# -*- coding: utf-8 -*-

from aws import AwsServiceResource


class S3(AwsServiceResource):

    def _init(self):
        super(S3, self)._init('s3')

    def get_bucket(self, name):
        return self.resource.Bucket(name)

    def get_all_buckets(self):
        return self.resource.buckets
